package com.hbue.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hbue.springboot.pojo.TbCustomer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ManageCustomerMapper extends BaseMapper<TbCustomer> {
    @Select("SELECT * FROM tb_customer WHERE cust_name LIKE CONCAT('%', #{customerName}, '%') and deleted = 0")
    List<TbCustomer> getCustomerByName(@Param("customerName") String customerName);
}
